package com.fd.demo;

public class SilverCard extends  Card{
    public SilverCard(String cardId, String name, String phone, int money) {
        super(cardId, name, phone, money);
    }
    @Override
    public void consume(double money) {
        System.out.println("你当前消费金额" + money);
        System.out.println("优惠后的价格" + money * 0.9);
        if(getMoney() < money * 0.8){

        }
        // 更新银卡的账号余额
        setMoney(getMoney() - money * 0.9);
    }
}
